/*
===============================================================================
 Name        : main.c
 Author      : banfield
 Version     : 1
 Copyright   : Copyright (C)
 Description : main definition
===============================================================================
*/
#ifdef __USE_CMSIS
#include "lm3s_cmsis.h"
#endif

#include "inc/lm3s2965.h"
#include "MainSM.h"
#include "NestedSM.h"
#include "Initialization.h"

int main(void) {

	volatile unsigned long ulLoop;

	// Initialization of IO ports
	IOInit();

	while(1) {
		// Turn on LED1
		GPIO_PORTG_DATA_R |= 0x04;

		// Initialization of hardware/state machines go here
		InitMainSM();
		InitNestedSM();

		// Call run functions for highest level state machines here
		RunMainSM();
	}
	return 0 ;
}

